﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using 书易.Model;

namespace 书易.DAL
{
    /// <summary>
    /// 数据访问订单详情类
    /// </summary>
    public class OrderDetailsDal
    {
        public static int add(OrderDetails o)
        {
            return DbHelper.ExecuteNonQuery("insert into OrderDetails values(@OID,@BID,@BPrice,@BCount)",new SqlParameter[]{
                new SqlParameter("@OID",o.OID),
                new SqlParameter("@BID",o.BID),
                new SqlParameter("@BPrice",o.BPrice),
                new SqlParameter("@BCount",o.BCount),
            });
        }
    }
}
